//
//  Comida.m
//  QuickMeals2_iOS
//
//  Created by CAMILO ANTONIO RODRIGUEZ GAVIRIA on 7/10/11.
//  Copyright 2011 QuickMeals2. All rights reserved.
//

#import "Comida.h"


@implementation Comida

@synthesize nombre;
@synthesize calories;
@synthesize price;
@synthesize prepTime;
@synthesize quantity;
@synthesize category;

- (Comida *) createMeal:(NSString *)name calories:(int)nCalories price:(double) nPrice prepTime:(int) nPrepTime{
	self.nombre = name;
	self.calories = nCalories;
	self.price = nPrice;
	self.prepTime = nPrepTime;
	return self;
	
}
- (Comida *) createMeal:(NSString *)name quantity:(int)nQuantity{
	self.nombre = name;
	self.quantity = nQuantity;
	return self;
}
- (Comida *) createMeal:(NSString *)name category:(NSString *)nCategory price:(double)nPrice prepTime:(int) nPrepTime{
	self.nombre = name;
	self.category = nCategory;
	self.price = nPrice;
	self.prepTime = nPrepTime;
	return self;
}
- (Comida *) createMeal:(NSString *)name price:(double)nPrice prepTime:(int) nPrepTime{
	self.nombre = name;
	self.price = nPrice;
	self.prepTime = nPrepTime;
	return self;
}

@end
